public class MZ_Track_Edit{
    private final MZ_Track__c tr;
    public MZ_Track_Edit(ApexPages.StandardController stdController){
      //  this.tr = (MZ_Track__c)stdController.getRecord();
        this.tr = [SELECT Id,MZ_Album_ref__c FROM MZ_Track__c WHERE Id =:ApexPages.currentPage().getParameters().get('id') limit 1];
    }
    
    public PageReference Album(){
        PageReference pr;//= new PageReference();
    if(tr.MZ_Album_ref__c!=NULL){
   // PageReference pr = new PageReference('/apex/MZ_Album_View?id='+tr.MZ_Album_ref__c);
    //PageReference pr= ApexPages.currentPage().getParameters().put('name','MZ_Album_View');
    pr= Page.MZ_Album_View;
    pr.getParameters().put('id',tr.MZ_Album_ref__c);
    
    }else {
    pr = new PageReference('/a07/e');
    
    }
     return pr;
    }
     public List<SelectOption> getBitrate() {
        List<SelectOption> options = new List<SelectOption>();
        options.add(new SelectOption('60','60'));
        options.add(new SelectOption('180','180'));
        options.add(new SelectOption('320','320'));
        options.add(new SelectOption('0','Other'));
        return options;
    }
}